#include "gtkaccessible.h"
#include "gtkbuildable.h"
#include "gtktypebuiltins.h"
-#include "gtkcenterbox.h"
+#include "gtkbox.h"
#include "gtkrevealer.h"
#include <string.h>
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (action_bar);
if (type && strcmp (type, "center") == 0)
- gtk_center_box_set_center_widget (GTK_CENTER_BOX (priv->center_box), GTK_WIDGET (child));
+ gtk_box_set_center_widget (GTK_BOX (priv->center_box), GTK_WIDGET (child));
else if (!type)
gtk_container_add (GTK_CONTAINER (buildable), GTK_WIDGET (child));
else
{
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (action_bar);
- gtk_center_box_pack_start (GTK_CENTER_BOX (priv->center_box), child);
+ gtk_box_pack_start (GTK_BOX (priv->center_box), child, FALSE, TRUE, 0);
}
/**
{
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (action_bar);
- gtk_center_box_pack_end (GTK_CENTER_BOX (priv->center_box), child);
+ gtk_box_pack_end (GTK_BOX (priv->center_box), child, FALSE, TRUE, 0);
}
/**
{
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (action_bar);
- gtk_center_box_set_center_widget (GTK_CENTER_BOX (priv->center_box),
- center_widget);
+ gtk_box_set_center_widget (GTK_BOX (priv->center_box), center_widget);
}
/**
g_return_val_if_fail (GTK_IS_ACTION_BAR (action_bar), NULL);
- return gtk_center_box_get_center_widget (GTK_CENTER_BOX (priv->center_box));
+ return gtk_box_get_center_widget (GTK_BOX (priv->center_box));
}
/**
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <object class="GtkCenterBox" id="center_box">
+ <object class="GtkBox" id="center_box">
<property name="visible">True</property>
+ <property name="orientation">horizontal</property>
<property name="can_focus">False</property>
<property name="border_width">0</property>
<property name="spacing">6</property>